package cn.myschool.g;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
//花园
public class Gardon {
    private String name,addr;
    private List<String> flowers=new ArrayList<>();
    //key是职务，value是人名
    private Map<String,String>emps=new HashMap<>();

    public void showInfo(){
        System.out.println("这个花园叫"+name+",地址在"+addr);
        System.out.println("培养的花卉品种有："+this.flowers);
        System.out.println("有职工：");
        System.out.println(emps);
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public void setFlowers(List<String> flowers) {
        this.flowers = flowers;
    }

    public void setEmps(Map<String, String> emps) {
        this.emps = emps;
    }
}
